#!/bin/sh

export APPNAME="XSanguo"
export APP_ANDROID_NAME="com.shoyoo.XSanguo"

# read local.properties

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export APP_ROOT="$DIR/.."
export APP_ANDROID_ROOT="$DIR"

echo "NDK_ROOT = $NDK_ROOT"
echo "SDK_ROOT = $SDK_ROOT"
echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
echo "APP_ROOT = $APP_ROOT"
echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
echo "APP_ANDROID_NAME = $APP_ANDROID_NAME"

echo $SDK_ROOT
echo
echo "Killing and restarting ${APP_ANDROID_NAME}"
echo

#"${SDK_ROOT}"/platform-tools/adb shell am force-stop "${APP_ANDROID_NAME}"

export NDK_MODULE_PATH="${COCOS2DX_ROOT}":"${COCOS2DX_ROOT}"cocos:"${COCOS2DX_ROOT}"external:"${COCOS2DX_ROOT}"cocos/2d/platform/third_party/android/prebuilt

export NDK_DEBUG=1
export NDK_TOOLCHAIN_VERSION="4.8"
